<?php
$v_idea_id = 0;
if(isset($_REQUEST['hdn_idea_id'])){
	$v_idea_id = intval($_REQUEST['hdn_idea_id']);
}
$v_record_id = 0;
if(isset($_REQUEST['hdn_record_id'])){
	$v_record_id = intval($_REQUEST['hdn_record_id']);
}
$v_status = 1;
$v_filter = "";
$v_cate_id= 0;
if(_is_sqlserver()){
	
	$sql = "Exec ONEGATE_RecordtypeGetAll " ;
	$sql = $sql.$v_status.",";
	$sql = $sql.$v_cate_id.",";
	$sql = $sql."'".$v_filter."'";
	$ado_conn->SetFetchMode(ADODB_FETCH_NUM);
	$arr_all_recordtype = $ado_conn->GetAll($sql); 
	
	$sql = "Exec Onegate_IdeaGetSingle  ";
	$sql = $sql .$v_idea_id;
	$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
	$arr_single_idea = $ado_conn->GetRow($sql);

	$sql = "Exec Onegate_RecordGetSingle " . $v_record_id ;
	$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
	$arr_single_record = $ado_conn->GetRow($sql); 
}?>
